package com.example.music.app

import android.app.Application
import cn.leancloud.LCObject
import cn.leancloud.LeanCloud
import com.example.lib_leancloud.LeanCloud_AppID
import com.example.lib_leancloud.LeanCloud_AppKey
import com.example.lib_leancloud.LeanCloud_Serve_URL
import com.example.lib_leancloud.model.Advertisement
import com.example.lib_leancloud.model.Chart
import com.example.lib_leancloud.model.Music

class MyApplication:Application() {
    override fun onCreate() {
        super.onCreate()

        LCObject.registerSubclass(Advertisement::class.java)
        LCObject.registerSubclass(Chart::class.java)
        LCObject.registerSubclass(Music::class.java)
        LeanCloud.initialize(
            this,
            LeanCloud_AppID,
            LeanCloud_AppKey,
            LeanCloud_Serve_URL)
    }
}